package List;

public class Test {
    public static void main(String[] args) {
        MyList myList=new MyList();
        myList.addFirst(1);
        myList.addFirst(2);
        myList.addFirst(3);
        myList.addFirst(4);
        myList.addFirst(5);
        myList.display();
        myList.addLast(1);
        myList.addLast(2);
        myList.addLast(3);
        myList.addLast(4);
        myList.addLast(5);
        myList.display();
        myList.addIndex(0,6);
        myList.display();
        myList.addIndex(myList.size(), 6);
        myList.display();
        myList.addIndex(myList.size()/2,0 );
        myList.display();
        System.out.println(myList.contains(1));
        System.out.println(myList.contains(7));
        myList.remove(6);
        myList.display();
        myList.removeAllKey(6);
        myList.display();
myList.removeAllKey(1);
myList.display();
        System.out.println(myList.size());
        myList.clear();
        myList.display();
    }
}
